package com.atguigu.service.Impl;

import com.atguigu.dao.BaseDao;
import com.atguigu.dao.HouseImageDao;
import com.atguigu.entity.HouseImage;
import com.atguigu.service.HouseImageService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @title：
 * @author：Yu
 * @create：2023-02-15 10:22
 * @description：
 */
@DubboService
public class HouseImageServiceImpl extends BaseServiceImpl<HouseImage> implements HouseImageService {
    @Autowired
    private HouseImageDao houseImageDao;

    @Override
    public BaseDao<HouseImage> getBaseDao() {
        return houseImageDao;
    }

    @Override
    public List<HouseImage> findImage(Long id, Integer type) {
        return houseImageDao.findImage(id, type);
    }
}
